package com.milo.elastic.entity;

import lombok.Data;
import org.springframework.data.annotation.Id;
import org.springframework.data.elasticsearch.annotations.Document;
import org.springframework.data.elasticsearch.annotations.Field;

import java.io.Serializable;

/**
 * @author: Milogenius
 * @create: 2019-07-24 10:06
 * @description: 商品
 **/
@Data
@Document(indexName = "commodity")
public class Commodity implements Serializable {

    @Id
    private String skuId;
    /**名称*/
    private String name;
    /**分类*/
    private String category;
    /**价格*/
    private Integer price;
    /**品牌*/
    private String brand;
    /**库存*/
    private Integer stock;

}